package query;

import java.io.IOException;
import java.io.Serializable;

import model.Schadensbericht;
import server.MySqlConnector;

public class SchadenberichtEinSuchenQuery extends AbstractQuery implements Serializable{
	private static final long serialVersionUID = 2661011647794721161L;
	Schadensbericht schadensbericht;
	private int id;
	
	
	public void doAction() {
		schadensbericht = MySqlConnector.getEinSchadenbericht(id);
		
		try {
			
			serverOutputStream.writeObject(schadensbericht);
		} catch (IOException e) {	
			e.printStackTrace();
		}
	}
	
	public void setId(int id) {
		this.id = id;
	}

}
